<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<style type="text/css">
table{table-layout: fixed;width: 1000px;text-align: center;border: 2px solid silver}
table caption{padding:10px;font-size: 40px ;border-bottom: 2px solid #b3de94;border-top: 2px solid #b3de94;background-color: black;color: white;}
table tbody tr.row0{background-color: #F0FFF0}
table tbody tr.row1{background-color: #FFE4E1}
</style>
</head>
<body>
<div><a href="${pageContext.request.contextPath}/index.jsp">返回首页</a></div>
<table>
	<caption>${course.courseName }</caption>
	<thead>
		<tr>
			<th>上传时间</th>
			<th>备注</th>
			<th>答案详细</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach varStatus="rows"  var="item" items="${course.homeworks }">
			<tr class="row${rows.count%2}">
				<td>${item.datetime2 }</td>
				<td>${item.ps }</td>
				<td><a href="showpictures.do?homeworkId=${item.homeworkId }"><img src="${pageContext.request.contextPath}/page/520.png" alt="more"></img></a></td>
				<td><a href="delete.do?homeworkId=${item.homeworkId }">删除</a>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="4"><a href="${pageContext.request.contextPath}/choose.do?course=${course.courseAcronym}&currentPage=${currentPage+1}">下一页</a>
							<a href="${pageContext.request.contextPath}/choose.do?course=${course.courseAcronym}&currentPage=${currentPage-1}">上一页</a>
							<a href="${pageContext.request.contextPath}/choose.do?course=${course.courseAcronym}&currentPage=1">首页</a>
							<a href="${pageContext.request.contextPath}/choose.do?course=${course.courseAcronym}&currentPage=${lastPage}">尾页</a>
			</td>
		</tr>
	</tfoot>
</table>
<div><a href="${pageContext.request.contextPath}/index.jsp">返回首页</a></div>
</body>
</html>